import 'package:flutter/material.dart';

import 'MyAppBar.dart';

/**
 * Row 水平布局
 * */
class MyRowwidget1 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return  Scaffold(
        appBar: CommonBar(title: 'Row Widget 1'),
        body: new Row(
          children: [
            Expanded(
              child: new RaisedButton(
                onPressed: () {},
                color: Colors.redAccent,
                child: new Text('red Button'),
              ),
            ),
            Expanded(
              child: new RaisedButton(
                onPressed: () {},
                color: Colors.orangeAccent,
                child: new Text('orange Button'),
              ),
            ),
            Expanded(
              child: new RaisedButton(
                onPressed: () {},
                color: Colors.lightBlue,
                child: new Text('blue Button'),
              ),
            ),
          ],
        ),
      );
  }
}
